package com.xkdx.caipiao.presistence.autologin;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.caipiao.module.network.AbsAction;

public class AutoLoginAction extends AbsAction {
	String id, logintoken,signcode;

	public AutoLoginAction(String id, String logintoken,String signcode) {
		this.id = id;
		this.logintoken = logintoken;
		this.signcode = signcode;
	}

	@Override
	public void constructRequest() {

		HashMap<String, String> maplogin = new HashMap<String, String>();
		maplogin.put("id", id);
		maplogin.put("logintoken", logintoken);
		maplogin.put("signcode", signcode);

		String jsonlogin = constructJson(maplogin);
		Parameter parameterlogin = new Parameter("User", "AutoLogin", jsonlogin);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameterlogin);

		requestData = constructMod(list);

	}
}
